var geturl = getUrlParaObj();
console.log('url:'+getUrlParaData(geturl,'name'))

//开始倒计时
var countdown = 60; 
function settime(obj) { 
    if (countdown == 0) { 
        obj.removeAttribute("disabled");
        addClass(obj,'thatcode')
        obj.value="获取验证码";
        countdown = 60;
        return;
    } else { 
        obj.setAttribute("disabled", true); 
        removeClass(obj,'thatcode')
        obj.value="重新发送(" + countdown + ")";
        countdown--;
    } 
	setTimeout(function() {
	    settime(obj) }
	,1000)
}


hui.ready(function(){
	//删除输入框内容
	hui.formInit();

	hui('#submit').click(function(){
	    var res = huiFormCheck('#form1');
		if(res){
	        hui.open('login.html')
	    }
	});
	
	hui("#getCode").click(function() {
		var thisCode =document.getElementById("thiscode");
	    settime(thisCode)
	})
	
	hui.plusReady(function(){
		var _info = plus.webview.currentWebview();
		console.log('app'+_info)
	})
});